@@ -70,45 +70,37 @@ if (common.isWindows) {
70
70
}
71
71
72
72
const endianness = os . endianness ( ) ;
73
- console . log ( 'endianness = %s' , endianness ) ;
74
73
is . string ( endianness ) ;
75
74
assert . ok ( / [ B L ] E / . test ( endianness ) ) ;
76
75
77
76
const hostname = os . hostname ( ) ;
78
- console . log ( 'hostname = %s' , hostname ) ;
79
77
is . string ( hostname ) ;
80
78
assert . ok ( hostname . length > 0 ) ;
81
79
82
80
const uptime = os . uptime ( ) ;
83
- console . log ( 'uptime = %d' , uptime ) ;
84
81
is . number ( uptime ) ;
85
82
assert . ok ( uptime > 0 ) ;
86
83
87
84
const cpus = os . cpus ( ) ;
88
- console . log ( 'cpus = ' , cpus ) ;
89
85
is . array ( cpus ) ;
90
86
assert . ok ( cpus . length > 0 ) ;
91
87
92
88
const type = os . type ( ) ;
93
- console . log ( 'type = ' , type ) ;
94
89
is . string ( type ) ;
95
90
assert . ok ( type . length > 0 ) ;
96
91
97
92
const release = os . release ( ) ;
98
- console . log ( 'release = ' , release ) ;
99
93
is . string ( release ) ;
100
94
assert . ok ( release . length > 0 ) ;
101
95
//TODO: Check format on more than just AIX
102
96
if ( common . isAix )
103
97
assert . ok ( / ^ \d + \. \d + $ / . test ( release ) ) ;
104
98
105
99
const platform = os . platform ( ) ;
106
- console . log ( 'platform = ' , platform ) ;
107
100
is . string ( platform ) ;
108
101
assert . ok ( platform . length > 0 ) ;
109
102
110
103
const arch = os . arch ( ) ;
111
- console . log ( 'arch = ' , arch ) ;
112
104
is . string ( arch ) ;
113
105
assert . ok ( arch . length > 0 ) ;
114
106
@@ -121,7 +113,6 @@ if (!common.isSunOS) {
121
113
122
114
123
115
const interfaces = os . networkInterfaces ( ) ;
124
- console . error ( interfaces ) ;
125
116
switch ( platform ) {
126
117
case 'linux' :
127
118
{
@@ -151,7 +142,6 @@ assert.ok(EOL.length > 0);
151
142
152
143
const home = os . homedir ( ) ;
153
144
154
- console . log ( 'homedir = ' + home ) ;
155
145
is . string ( home ) ;
156
146
assert . ok ( home . includes ( path . sep ) ) ;
157
147
0 commit comments