test: scaffold/54-argv.c: Support running with TinyCC.

This fixes running as lib/tests/scaffold/54-argv-i686-unknown-linux-gnu-tcc.

* lib/tests/scaffold/54-argv.c (main): Compare only first 26 characters
of argv[0].
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-11-29 08:58:12 +01:00
parent 905277a73a
commit bdb1e2ec56
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1,6 +1,6 @@
/* -*-comment-start: "//";comment-end:""-*- /* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software * GNU Mes --- Maxwell Equations of Software
* Copyright © 2017,2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> * Copyright © 2017,2018,2019,2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
* *
* This file is part of GNU Mes. * This file is part of GNU Mes.
* *
@ -31,7 +31,7 @@ main (int argc, char *argv[])
oputs ("argv0="); oputs ("argv0=");
oputs (argv[0]); oputs (argv[0]);
oputs ("\n"); oputs ("\n");
if (strcmp (argv[0], "lib/tests/scaffold/54-argv")) if (strncmp (argv[0], "lib/tests/scaffold/54-argv", 26))
return 1; return 1;
oputs ("t: *argv\"\n"); oputs ("t: *argv\"\n");