diff options
author | jBarz <jBarz@users.noreply.github.com> | 2016-12-12 23:56:24 -0500 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-12-27 14:01:49 -0800 |
commit | 1c3c75dac286fd64ae1a63170002cd1abd9a6e16 (patch) | |
tree | e9d346fb98c33cd3a965d764276d75aa4eb6f6a8 /test/parallel/test-os.js | |
parent | 97ab4b29989813a40f5b3f1a8456fb3c7212bb89 (diff) | |
download | android-node-v8-1c3c75dac286fd64ae1a63170002cd1abd9a6e16.tar.gz android-node-v8-1c3c75dac286fd64ae1a63170002cd1abd9a6e16.tar.bz2 android-node-v8-1c3c75dac286fd64ae1a63170002cd1abd9a6e16.zip |
os: fix os.release() for aix and add test
PR-URL: https://github.com/nodejs/node/pull/10245
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-os.js')
-rw-r--r-- | test/parallel/test-os.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/parallel/test-os.js b/test/parallel/test-os.js index fa78b9dc98..5a0a9f6ad1 100644 --- a/test/parallel/test-os.js +++ b/test/parallel/test-os.js @@ -77,6 +77,9 @@ const release = os.release(); console.log('release = ', release); is.string(release); assert.ok(release.length > 0); +//TODO: Check format on more than just AIX +if (common.isAix) + assert.ok(/^\d+\.\d+$/.test(release)); const platform = os.platform(); console.log('platform = ', platform); |