[gjs] Revert "gjs-unit: Allow running just one test case"
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Revert "gjs-unit: Allow running just one test case"
- Date: Mon, 20 Jun 2011 16:40:55 +0000 (UTC)
commit eaad816074be8861fe087ca9fe368b9e584c42f9
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Jun 19 17:51:13 2011 +0200
Revert "gjs-unit: Allow running just one test case"
This reverts commit a579bab22320f4ae53634eb3731eb444679497ab.
It was already possible with "gjs-unit -p /test/case", and this
commit broke make check.
https://bugzilla.gnome.org/show_bug.cgi?id=652950
test/gjs-unit.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/test/gjs-unit.c b/test/gjs-unit.c
index 60857a5..a222d9d 100644
--- a/test/gjs-unit.c
+++ b/test/gjs-unit.c
@@ -187,10 +187,6 @@ main(int argc, char **argv)
GSList *all_tests, *iter;
GSList *test_filenames = NULL;
int retval;
- const char *target_unit = NULL;
-
- if (argc >= 2)
- target_unit = argv[1];
working_dir = g_get_current_dir();
@@ -273,9 +269,6 @@ main(int argc, char **argv)
g_free(name);
continue;
}
-
- if (target_unit != NULL && strcmp (name, target_unit) != 0)
- continue;
/* pretty print, drop 'test' prefix and '.js' suffix from test name */
test_name = g_strconcat("/js/", name + 4, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]