summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2013-05-18 23:24:03 +0200
committerSimon Ochsenreither <simon@ochsenreither.de>2013-06-06 01:36:16 +0200
commitda7c06478f711d6b41ad144b8cf4c8658381373e (patch)
tree6b010360998117fc1798819c2f74fbb7912e3c8b /src/library
parent803d451a28824af17f0cab446e4c76f51003fd01 (diff)
downloadscala-da7c06478f711d6b41ad144b8cf4c8658381373e.tar.gz
scala-da7c06478f711d6b41ad144b8cf4c8658381373e.tar.bz2
scala-da7c06478f711d6b41ad144b8cf4c8658381373e.zip
SI-7479 Add avian option to partest's diff filter...
... so that the different results of the test on Avian can be specified in the check file.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/util/Properties.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/util/Properties.scala b/src/library/scala/util/Properties.scala
index 2240dde360..fef9cef246 100644
--- a/src/library/scala/util/Properties.scala
+++ b/src/library/scala/util/Properties.scala
@@ -146,6 +146,9 @@ private[scala] trait PropertiesTrait {
/** Returns `true` iff the underlying operating system is a version of Apple Mac OSX. */
def isMac = osName startsWith "Mac OS X"
+ /* Some runtime values. */
+ private[scala] def isAvian = javaVmName contains "Avian"
+
// This is looking for javac, tools.jar, etc.
// Tries JDK_HOME first, then the more common but likely jre JAVA_HOME,
// and finally the system property based javaHome.