about summary refs log tree commit diff
path: root/pkgs/test/make-binary-wrapper/chdir.c
diff options
context:
space:
mode:
authorJacek Galowicz <jacek@galowicz.de>2021-12-07 17:39:38 +0000
committerJacek Galowicz <jacek@galowicz.de>2021-12-09 11:32:28 +0000
commit2bc7345064f5fc454282f044589e9f4b288257d4 (patch)
tree632c70a081eca87970c9162c122c6010a9d72bce /pkgs/test/make-binary-wrapper/chdir.c
parentf3b16a6b5d9d027f2a5d7f732378b90495c8bcdf (diff)
Add golden effects test
Diffstat (limited to 'pkgs/test/make-binary-wrapper/chdir.c')
-rw-r--r--pkgs/test/make-binary-wrapper/chdir.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/pkgs/test/make-binary-wrapper/chdir.c b/pkgs/test/make-binary-wrapper/chdir.c
index ff1f91a03babd..c67c695b1c3b9 100644
--- a/pkgs/test/make-binary-wrapper/chdir.c
+++ b/pkgs/test/make-binary-wrapper/chdir.c
@@ -1,6 +1,3 @@
-// makeCWrapper /path/to/executable \
-    --chdir /usr/local/bin
-
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -8,7 +5,7 @@
 #define assert_success(e) do { if ((e) < 0) { perror(#e); abort(); } } while (0)
 
 int main(int argc, char **argv) {
-    assert_success(chdir("/usr/local/bin"));
-    argv[0] = "/path/to/executable";
-    return execv("/path/to/executable", argv);
-}
\ No newline at end of file
+    assert_success(chdir("/tmp/foo"));
+    argv[0] = "/send/me/flags";
+    return execv("/send/me/flags", argv);
+}