changeset 274:21efb6c131f1

updated defencive versions tests for not yet documented versions "Sparc" and "solaris"
author thomask
date Mon, 07 Feb 2005 00:57:53 +0000
parents 68b883fe4fad
children 62ebf330f1be
files run/version_02.d run/version_04.d
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/run/version_02.d	Mon Feb 07 00:08:11 2005 +0000
+++ b/run/version_02.d	Mon Feb 07 00:57:53 2005 +0000
@@ -20,11 +20,15 @@
 	}
 
 	version(darwin){
-		os+=99; // this isn't part of the standard (v0.111)
+		assert(0); // this isn't yet part of the standard (v0.111)
 	}
 
 	version(Unix){
-		os+=99; // this isn't part of the standard (v0.111)
+		assert(0); // this isn't yet part of the standard (v0.111)
+	}
+
+	version(solaris){
+		assert(0); // this isn't yet part of the standard (v0.111)
 	}
 	
 	assert(os == 1);
--- a/run/version_04.d	Mon Feb 07 00:08:11 2005 +0000
+++ b/run/version_04.d	Mon Feb 07 00:57:53 2005 +0000
@@ -18,6 +18,10 @@
 		cpu++;
 	}
 
+	version(Sparc){
+		assert(0); // this isn't yet part of the standard (v0.111)
+	}
+
 	assert(cpu==1);
 
 	return 0;