diff options
| author | Dr. David Alan Gilbert <david.gilbert@linaro.org> | 2011-05-24 23:39:47 +0200 |
|---|---|---|
| committer | Jiri Olsa <Jiri Olsa jolsa@redhat.com> | 2011-05-25 12:45:30 +0200 |
| commit | 56798f25922db3299e11418e9114329006a498ab (patch) | |
| tree | 8f7831281dcae9abfd8db953a922cd98a272a1e3 /test/test-args.c | |
| parent | d0d232d7b97ea8962f64fc2126d764009048a090 (diff) | |
| download | latrace-56798f25922db3299e11418e9114329006a498ab.tar.gz latrace-56798f25922db3299e11418e9114329006a498ab.tar.xz latrace-56798f25922db3299e11418e9114329006a498ab.zip | |
args - use isprint to decide whether to print the character
+ force test.sh to use bash
+ fix test_char tests
contributed by Dr. David Alan Gilbert <david.gilbert@linaro.org>
Diffstat (limited to 'test/test-args.c')
| -rw-r--r-- | test/test-args.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-args.c b/test/test-args.c index a29c86c..80497c8 100644 --- a/test/test-args.c +++ b/test/test-args.c @@ -27,9 +27,9 @@ static int test_char(struct lt_config_shared *sh) { RE_TEST_TYPE_STR, -1, -1, "\\} test_char_4 = 0xc9" }, }; struct re_test_data data5[] = { - { RE_TEST_TYPE_STR, 0, 65, "test_char_5\\(a = 0xff, b = 0x15, c = 0x0d, d = 0x20, e = 0x79 'y'\\)" }, - { RE_TEST_TYPE_STR, 66, -1, "\\[.*lib-test-args.so\\] \\{" }, - { RE_TEST_TYPE_STR, -1, -1, "\\} test_char_5 = 0xc7" }, + { RE_TEST_TYPE_STR, 0, 69, "test_char_5\\(a = 0xff, b = 0x15, c = 0x0d, d = 0x20 ' ', e = 0x79 'y'\\)" }, + { RE_TEST_TYPE_STR, 70, -1, "\\[.*lib-test-args.so\\] \\{" }, + { RE_TEST_TYPE_STR, -1, -1, "\\} test_char_5 = 0x02" }, }; struct re_test_data data6[] = { { RE_TEST_TYPE_STR, 0, 75, "test_char_6\\(a = 0x64 'd', b = 0xc8, c = 0xd5, d = 0x0c, e = 0xc7, f = 0xf2\\)" }, @@ -44,7 +44,7 @@ static int test_char(struct lt_config_shared *sh) struct re_test_data data8[] = { { RE_TEST_TYPE_STR, 0, 95, "test_char_8\\(a = 0xf5, b = 0x15, c = 0x1e, d = 0xfc, e = 0x17, f = 0x85, g = 0x46 'F', h = 0x06\\)" }, { RE_TEST_TYPE_STR, 96, -1, "\\[.*lib-test-args.so\\] \\{" }, - { RE_TEST_TYPE_STR, -1, -1, "\\} test_char_8 = 0xc9" }, + { RE_TEST_TYPE_STR, -1, -1, "\\} test_char_8 = 0x39 '9'" }, }; struct re_test_data data9[] = { { RE_TEST_TYPE_STR, 0, 109, "test_char_9\\(a = 0xf6, b = 0x01, c = 0x03, d = 0x04, e = 0x09, f = 0x63 'c', g = 0x4e 'N', h = 0xf7, i = 0x0c\\)" }, |
