]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix machine detection on s390 to not bail out the regression
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 29 May 2012 11:02:28 +0000 (11:02 +0000)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 29 May 2012 11:02:28 +0000 (11:02 +0000)
test on unknown systems.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12593

tests/s390x_features.c

index 302d16772463ffb2593c0bf6b39c3242c70cd520..31a7bd7565cf3a2ae5695a76e0529f205f12c55a 100644 (file)
@@ -17,9 +17,9 @@
 //     model, if specified, matches the machine
 // - 1 the machine does not provide the asked-for feature or the
 //     cpu model, if specified, does not match the machine
+// - 1 for an unknown cpu model in /proc/cpu_info
 // - 2 if the asked-for feature isn't recognised (this will be the case for
 //     any feature if run on a non-s390x machine).
-// - 2 for an unknown cpu model in /proc/cpu_info
 // - 3 if there was a usage error (it also prints an error message).
 //
 // USAGE:
@@ -84,6 +84,7 @@ model_info models[] = {
    { "2097", "z10-ec" },
    { "2098", "z10-bc" },
    { "2817", "z196"   },
+   { "2818", "z114"   },
 };
 
 
@@ -224,7 +225,7 @@ static int go(char *feature, char *cpu)
    if (cpu == NULL) return 0;
 
    host = get_host();
-   if (host == NULL) return 2;  // unknown model
+   if (host == NULL) return 1;  // unknown model
 
    //   printf("host = %s (%s)\n", host->cpuinfo_name, host->real_name);