summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/futimes.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-04-30 17:07:43 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-04-30 17:07:43 -0400
commit059cd9efbd82e1017406a7a290a2fb9f6bfb64f7 (patch)
tree8ab74af55066fd93c30682da09014aa81e3339ef /testsuite/systemtap.syscall/futimes.c
parentc12f7fa15eec148307fa94f886b0673c1d0dd789 (diff)
downloadsystemtap-steved-059cd9efbd82e1017406a7a290a2fb9f6bfb64f7.tar.gz
systemtap-steved-059cd9efbd82e1017406a7a290a2fb9f6bfb64f7.tar.xz
systemtap-steved-059cd9efbd82e1017406a7a290a2fb9f6bfb64f7.zip
syscalls testsuite: use different escape sequence
The syscall testsuite uses embedded "// TEXT" markers in the .c files to designate expected output, kind of like the "dg-" bunch in the gcc test suite. Unfortunately, "//" is not a unique prefix to systemtap tests, and in particular it can occur in the system headers that will be picked up with the "gcc -E -C ..." invocation in test.tcl. So let's switch to "//staptest//". test.tcl is also modified to escape a few more mischevious regexp metacharacters that might sneak past.
Diffstat (limited to 'testsuite/systemtap.syscall/futimes.c')
-rw-r--r--testsuite/systemtap.syscall/futimes.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/testsuite/systemtap.syscall/futimes.c b/testsuite/systemtap.syscall/futimes.c
index eca1efc7..4b812513 100644
--- a/testsuite/systemtap.syscall/futimes.c
+++ b/testsuite/systemtap.syscall/futimes.c
@@ -31,20 +31,20 @@ int main()
times.actime = 1000000000;
times.modtime = 2000000000;
syscall(__NR_utime, "foobar", &times );
- // utime ("foobar", \[Sun Sep 9 01:46:40 2001, Wed May 18 03:33:20 2033])
+ //staptest// utime ("foobar", \[Sun Sep 9 01:46:40 2001, Wed May 18 03:33:20 2033])
#endif /* __NR_utimes */
#ifdef __NR_utimes
syscall(__NR_utimes, "foobar", tv);
- // utimes ("foobar", \[1000000000.001234\]\[2000000000.005678\])
+ //staptest// utimes ("foobar", \[1000000000.001234\]\[2000000000.005678\])
#endif /* __NR_utimes */
#ifdef __NR_futimesat
syscall(__NR_futimesat, 7, "foobar", tv);
- // futimesat (7, "foobar", \[1000000000.001234\]\[2000000000.005678\])
+ //staptest// futimesat (7, "foobar", \[1000000000.001234\]\[2000000000.005678\])
syscall(__NR_futimesat, AT_FDCWD, "foobar", tv);
- // futimesat (AT_FDCWD, "foobar", \[1000000000.001234\]\[2000000000.005678\])
+ //staptest// futimesat (AT_FDCWD, "foobar", \[1000000000.001234\]\[2000000000.005678\])
#endif /* __NR_futimesat */
#ifdef __NR_utimensat
@@ -53,17 +53,17 @@ int main()
ts[1].tv_sec = 2000000000;
ts[1].tv_nsec = 56780000;
syscall(__NR_utimensat, AT_FDCWD, "foobar", ts, 0);
- // utimensat (AT_FDCWD, "foobar", \[1000000000.123456789\]\[2000000000.056780000\], 0x0)
+ //staptest// utimensat (AT_FDCWD, "foobar", \[1000000000.123456789\]\[2000000000.056780000\], 0x0)
ts[0].tv_sec = 0;
ts[0].tv_nsec = UTIME_NOW;
ts[1].tv_sec = 0;
ts[1].tv_nsec = UTIME_OMIT;
syscall(__NR_utimensat, AT_FDCWD, "foobar", ts, AT_SYMLINK_NOFOLLOW);
- // utimensat (AT_FDCWD, "foobar", \[UTIME_NOW\]\[UTIME_OMIT\], AT_SYMLINK_NOFOLLOW)
+ //staptest// utimensat (AT_FDCWD, "foobar", \[UTIME_NOW\]\[UTIME_OMIT\], AT_SYMLINK_NOFOLLOW)
syscall(__NR_utimensat, 22, "foobar", ts, 0x42);
- // utimensat (22, "foobar", \[UTIME_NOW\]\[UTIME_OMIT\], 0x42)
+ //staptest// utimensat (22, "foobar", \[UTIME_NOW\]\[UTIME_OMIT\], 0x42)
#endif